<include file="Public/header" />
<div class="container clearfix">
    <include file="Public/left" />
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="__MODULE__">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="__CONTROLLER__">栏目管理</a><span class="crumb-step">&gt;</span><span>新增栏目</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
                        	<tr>
                                <th><i class="require-red">*</i>文章标题：</th>
                                <td>
                                    <input class="common-text required" id="title" name="title" size="50" value="{$ar.title}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>所属栏目：</th>
                                <td>
                                    <select id="cateid" name="cateid">
                                    	<foreach name="cate" item="vo" >
                                    	 	<option <if condition="$vo['id'] eq $ar['cateid']">selected="selected"</if> value="{$vo.id}">{$vo.catename}</option>
										</foreach>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <th>缩略图：</th>
                                <td>
                                    <input class="common-text required" id="pic" name="pic" size="50" value="" type="file">
                                    <if condition="$ar['pic'] neq ''">
		                            <img src="__ROOT__/{$ar.pic}" width="20" heigt="20"/>
		                            <else />
		                            	无缩略图
		                            </if>
                                </td>
                            </tr>
                            <tr>
                                <th>文章描述：</th>
                                <td>
                                    <textarea rows="5" cols="50" id="desc" name="desc">{$ar.desc}</textarea>
                                </td>
                            </tr>
                             <tr>
                                <th><i class="require-red">*</i>文章内容：</th>
                                <td>
                                    <textarea rows="5" cols="50" id="content" name="content">{$ar.content}</textarea>
                                </td>
                            </tr>
                            <tr>
                            	<td></td>
                                <td>
                                	<input type="hidden" name="id" id="id" value="{$ar.id}"/>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
 	<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/en/en.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
    	UE.getEditor('content',{initialFrameWidth:850,initialFrameHeight:400,});
    </script>
</body>
</html>